# -*- coding:utf-8 -*-

from sqlalchemy import Column, String
from config.database import BaseMixin, Base


class TitleBlacklist(Base, BaseMixin):
    """
    商品标题黑名单表
    """
    __tablename__ = "title_blacklist"
    
    keyword = Column(String(200), nullable=False, comment='关键字')
    match_type = Column(String(20), nullable=True, default='contains', comment='匹配类型: contains包含/equals精确/regex正则')
    reason = Column(String(500), nullable=True, comment='拉黑原因')
    remark = Column(String(500), nullable=True, comment='备注')
    status = Column(String(1), nullable=True, default='0', comment='状态（0启用 1禁用）')

